/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.cs.entity.QuestionExtraOption
   Module Description   :

   Date Created      : 2009/12/16
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.cs.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yaodian100.core.form.entity.Attribute;

/**
 * @author andy.chuang
 * 
 */
@Entity
@Table(name = "CRM_QUESTION_EV")
public class QuestionExtraValue implements Serializable {
    private String id;
    private Attribute attribute;
    private String value;
    private Question question;

    /**
     * @return the id
     */
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(length = 32)
    public String getId() {
	return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
	this.id = id;
    }

    private String name;

    /**
     * @return the question
     */

    @ManyToOne
    public Question getQuestion() {
	return question;
    }

    /**
     * @param question
     *            the question to set
     */
    public void setQuestion(Question question) {
	this.question = question;
    }

    /**
     * @return the name
     */
    @Column(name="name", length = 100)
    public String getName() {
	return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
	this.name = name;
    }

    /**
     * @return the attribute
     */
    @ManyToOne
    public Attribute getAttribute() {
	return attribute;
    }

    /**
     * @param attribute
     *            the attribute to set
     */
    public void setAttribute(Attribute attribute) {
	this.attribute = attribute;
    }

    /**
     * @return the value
     */
    @Column(length = 4000)
    public String getValue() {
	return value;
    }

    /**
     * @param value
     *            the value to set
     */
    public void setValue(String value) {
	this.value = value;
    }
}
